﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DimensionData
{
    public class DimTreeNode
    {
        //public List<DimViewItem> Items { get; set; }

        public DimTreeNode Next { get; set; }
        public DimData DimData { get; set; }
        public int Range { get; set; }

        public List<DimTreeNode> Nodes { get; set; }
        // 此节点关联的下级树
        public DimTree Tree { get; set; }

        public DimTreeNode()
        {
            //Items = new List<DimViewItem>();
            Nodes = new List<DimTreeNode>();
        }

        public DimTreeNode Clone()
        {
            DimTreeNode node = new DimTreeNode();
            node.DimData = this.DimData;
            node.Range = this.Range;
            if (Next != null)
            {
                node.Next = this.Next.Clone();
            }

            return node;
        }
    }
}
